package com.realtybaron.api;

import com.google.inject.Inject;
import com.google.inject.name.Named;

import javax.servlet.http.HttpServlet;

/**
 * User: marc
 * Date: Feb 9, 2010
 * Time: 8:26:34 AM
 * <p/>
 * THIS SOFTWARE IS COPYRIGHTED.  THE SOFTWARE MAY NOT BE COPIED REPRODUCED, TRANSLATED, OR REDUCED TO ANY ELECTRONIC
 * MEDIUM OR MACHINE READABLE FORM WITHOUT THE PRIOR WRITTEN CONSENT OF SOCO TECHNOLOGIES.
 */
public abstract class AbstractWebController extends HttpServlet {
  protected String apiKey;
  protected String apiBase;
  protected String appBase;
  protected String appName;
  protected ViewResolver resolver;
  @Inject
  public void setApiKey(@Named("apikey") String s) {
    this.apiKey = s;
  }
  @Inject
  public void setApiBase(@Named("apibase") String s) {
    this.apiBase = s;
  }
  @Inject
  public void setAppBase(@Named("appbase") String s) {
    this.appBase = s;
  }
  @Inject
  public void setAppName(@Named("appname") String s) {
    this.appName = s;
  }
  @Inject
  public void setResolver(ViewResolver resolver) {
    this.resolver = resolver;
  }
}
